[XEND][LIFECYCLE] Configurable storage path for lifecycle support
authoracnt2@huggins.lce.cl.cam.ac.uk <acnt2@huggins.lce.cl.cam.ac.uk>
Thu, 5 Oct 2006 16:29:19 +0000 (17:29 +0100)
committeracnt2@huggins.lce.cl.cam.ac.uk <acnt2@huggins.lce.cl.cam.ac.uk>
Thu, 5 Oct 2006 16:29:19 +0000 (17:29 +0100)
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendRoot.py

index 8dd89d6c77715624e6402a3b4b036bbb79a4f721..aac2aa3abb57af4791c5d3a83da419292f4ec5a3 100644 (file)
@@ -93,6 +93,9 @@ class XendRoot:
 
     dom0_vcpus_default = '0'
 
+    """Default session storage path."""
+    xend_domains_path_default = '/var/lib/xend/domains'
+
     components = {}
 
     def __init__(self):
@@ -237,6 +240,11 @@ class XendRoot:
         """
         return self.get_config_value("xend-unix-path", self.xend_unix_path_default)
 
+    def get_xend_domains_path(self):
+        """ Get the path for persistent domain configuration storage
+        """
+        return self.get_config_value("xend-domains-path", self.xend_domains_path_default)
+
     def get_network_script(self):
         """@return the script used to alter the network configuration when
         Xend starts and stops, or None if no such script is specified."""